package com.kt.dion.golf.data.golfzone;

import java.util.ArrayList;

import com.kt.dion.golf.data.Data;
import com.kt.dion.golf.util.Log;
import com.kt.dion.golf.util.ResourceManager;

public class GolfZoneDateListData extends Data
{
	private String code;
	private ArrayList name;
	private String nameImage;
	private String membership;
	private String address;
	private String holecnt;
	private String tel;
	private ArrayList surcharge;
	private String surchargeText;
	private String cartfee;
	private String caddyfee;

	private ArrayList arrDate = new ArrayList();

	public Date getDate(int i)
	{
		return (Date) arrDate.get(i);
	}

	public Data getSubData(int i)
	{
		if (i < arrDate.size())
			return (Data) arrDate.get(i);
		else
			return null;
	}

	public int getDataSize()
	{
		if (arrDate.isEmpty())
			Log.outLine(" arrDate is empty !!!!!!!!!!!!");
		return arrDate.size();
	}

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public ArrayList getName()
	{
		return name;
	}

	public void setName(ArrayList name)
	{
		this.name = name;
	}

	public String getMembership()
	{
		return membership;
	}

	public void setMembership(String membership)
	{
		this.membership = membership;
	}

	public String getAddress()
	{
		return address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public String getHolecnt()
	{
		return holecnt;
	}

	public void setHolecnt(String holecnt)
	{
		this.holecnt = holecnt;
	}

	public String getTel()
	{
		return tel;
	}

	public void setTel(String tel)
	{
		this.tel = tel;
	}

	public ArrayList getSurcharge()
	{
		return surcharge;
	}

	public void setSurcharge(ArrayList surcharge)
	{
		this.surcharge = surcharge;
	}

	public String getSurchargeText()
	{
		return surchargeText;
	}

	public void setSurchargeText(String surchargeText)
	{
		this.surchargeText = surchargeText;
	}

	public String getNameImage()
	{
		return nameImage;
	}

	public void setNameImage(String nameImage)
	{
		this.nameImage = nameImage;
	}

	public String getCartfee()
	{
		return cartfee;
	}

	public void setCartfee(String cartfee)
	{
		this.cartfee = cartfee;
	}

	public String getCaddyfee()
	{
		return caddyfee;
	}

	public void setCaddyfee(String caddyfee)
	{
		this.caddyfee = caddyfee;
	}

	public ArrayList getArrDate()
	{
		return arrDate;
	}

	public void setArrDate(ArrayList arrDate)
	{
		this.arrDate = arrDate;
	}

	public void addDate(Date date)
	{
		arrDate.add(date);
	}

	public class Date
	{
		private String date;
		private String weekname;
		private boolean holidayFlag;

		public String getDate()
		{
			return date;
		}

		public void setDate(String date)
		{
			this.date = date;
		}

		public String getWeekname()
		{
			return weekname;
		}

		public void setWeekname(String weekname)
		{
			this.weekname = weekname;
		}

		public boolean isHolidayFlag()
		{
			return holidayFlag;
		}

		public void setHolidayFlag(boolean holidayFlag)
		{
			this.holidayFlag = holidayFlag;
		}
	}

	public String toString()
	{
		return null;
	}

	public void dispose(boolean isDisposeOfPage)
	{
		ResourceManager.getInstance().removeImage(nameImage);
		arrDate.clear();
	}
}
